/* 布局样式 */
.top-bar {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 10vh;
    background-color: aqua;
    border-bottom: solid 5px;
}

.title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    margin: 0;
    line-height: 10vh;
}

.left-panel {
    position: absolute;
    left: 0;
    top: 10vh;
    width: 30vw;
    height: 90vh;
    border-right: solid 5px;
    display: flex;
    flex-direction: column;
}

.right-panel {
    position: absolute;
    left: 35vw;
    top: 15vh;
    width: 60vw;
    height: 80vh;
    border: solid 3px;
}

#allmap {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 聊天样式 */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
    border-top: solid 5px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-message {
    background: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.loading-indicator {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 10px;
    position: sticky;
    bottom: 0;
    background: rgba(245, 245, 245, 0.9);
}

/* 输入框样式 */
#input-form {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: solid 3px;
    min-height: 150px;
    max-height: 50vh;
}

#input-text {
    flex: 1;
    min-height: 100px;
    margin-bottom: 30px;
    overflow-y: auto;
    resize: none;
    font-size: 25px;
}

.button-container {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 30px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
    box-sizing: border-box;
}

#export-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#export-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}